import com.sun.media.sound.RIFFInvalidDataException;

import java.io.IOException;
import java.util.Random;
import java.util.Scanner;

public class test {
    public static void main(String[] args) {

    }
    public static void main10(String[] args) {
        int a=24;
        int b=18;
        int c=a%b;
        while(c!=0){
            a=b;
            b=c;
            c=a%b;
        }
        System.out.println("最大公约数是"+b);
    }
    //99乘法表
    public static void main9(String[] args) {
        for (int i = 1; i <= 9; i++) {
            for (int j = 1; j <= i; j++) {
                System.out.print(i+"*"+j+"="+i*j+" ");
            }
            System.out.println();
        }
    }
    public static void main8(String[] args) {
        for (int year = 1000; year <2000 ; year++) {
             if(year%100!=0&&year%4==0||year%400==0){
                 System.out.println(year+"是闰年");
             }
        }
    }
    public static void main7(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int n= scanner.nextInt();
        int i=2;
        for (; i <=Math.sqrt(n); i++) {
            if (n%i==0) {
                System.out.println(n+"不是素数");
                break;
            }
        }
        if(i>=Math.sqrt(n)){
            System.out.println(n+"是素数");
        }
    }
    //判断素数
    public static void main6(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int n= scanner.nextInt();
        int i=2;
        for (; i < n; i++) {
            if (n%i==0) {
                System.out.println(n+"不是素数");
                break;
            }
        }
         if(i==n){
             System.out.println(n+"是素数");
         }
    }
    public static void main5(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int n=scanner.nextInt();
        if (n <18) {
            System.out.println("少年");

        }else if(n>=18 && n<29){
            System.out.println("青年");
        }else if(n>=29 && n<56){
            System.out.println("中年");
        }else{
            System.out.println("老年");
        }
    }
    public static void main4(String[] args) {
        Random random=new Random();
        int rand= random.nextInt(100);
        Scanner scanner=new Scanner(System.in);
        while(true){
            System.out.print("请输入你要猜的数字：");
            int n= scanner.nextInt();
            if (n <rand) {
                System.out.println("猜小了");
            }else if(n==rand){
                System.out.println("猜对了");
                break;
            }else{
                System.out.println("猜大了");
            }

        }
    }
    public static void main3(String[] args) {
        Scanner scanner=new Scanner(System.in);
        while(scanner.hasNextInt()){
            int n=scanner.nextInt();
            System.out.println(n);
        }
    }
    public static void main2(String[] args) {
        Scanner scanner=new Scanner(System.in);
/*        int n=scanner.nextInt();
        System.out.println(n);
        double d=scanner.nextDouble();
        System.out.println(d);*/
        String str=scanner.nextLine();
        System.out.println(str);
    }
    public static void main1(String[] args) throws IOException {
        System.out.print("Enter a char");
        char i=(char)System.in.read();
        System.out.println("your char is :"+i);
    }
}
